﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.ServiceModel;
using BattleshipContract;

namespace Client1
{
    public interface IGameChannel : IGamePlay, IClientChannel
    {

    }

    public partial class GameClient : ClientBase<IGamePlay>, IGamePlay
    {
        public GameClient()
        {
        }

        public GameClient(string endPointConfigurationName)
            : base(endPointConfigurationName)
        {
        }

        public GameClient(string endPointConfigurationName, string remoteAddress)
            : base(endPointConfigurationName, remoteAddress)
        {
        }

        public GameClient(string endPointConfigurationName, EndpointAddress remoteAddress)
            : base(endPointConfigurationName, remoteAddress)
        {
        }

        public GameClient(System.ServiceModel.Channels.Binding binding, EndpointAddress remoteAddress)
            : base(binding, remoteAddress)
        {
        }

        /*public double Add(double n1, double n2)
        {
            return base.Channel.Add(n1, n2);
        }*/
        public void startGame(int playerId1, int playerId2)
        {
            base.Channel.startGame(playerId1, playerId2);
        }
        public void pauseGame()
        {
            base.Channel.pauseGame();
        }
        public void resumeGame()
        {
            base.Channel.resumeGame();
        }
        public void exitGame()
        {
            base.Channel.exitGame();
        }
        public void Shoot(int playerId, Point position)
        {
            base.Channel.Shoot(playerId, position);
        }
    }
}
